<ion-view view-title="客户信息" ng-controller="ClientController">
  <ion-nav-buttons side="right">
    <button class="button button-positive" ng-click="doSomething()">
      <i class="icon ion-android-add"></i>
    </button>
  </ion-nav-buttons>
  <ion-content>
    <ion-list>
      <div ng-class="['weui_search_bar',focusing]">
        <form class="weui_search_outer">
          <div class="weui_search_inner">
            <i class="weui_icon_search"></i>
            <input type="search" class="weui_search_input" placeholder="搜索" id="searchInput" ng-model="keyword" ng-keyup="searchKeyupEvent()" ng-blur="searchBlurEvent()" ng-focus="searchFocusEvent()"  />
            <a href="javascript:" class="weui_icon_clear" id="search_clear"></a>
          </div>
          <label class="weui_search_text" set-focus ng-if="searchText" ng-click="searchClickEvent()">
            <i class="weui_icon_search"></i>
            <span>搜索</span>
          </label>
        </form>
        <a href="javascript:" class="weui_search_cancel" ng-click="searchCancel()">取消</a>
      </div>

      <ion-item collection-repeat="client in clientList | filter:keyword"
                item="item" ng-click="to_detail(client.id, true)" class="item-remove-animate">
        {{ client.cClientName }}

        <ion-option-button class="button-assertive"
                           ng-click=""> 删除
        </ion-option-button>
        <ion-option-button class="button-calm"
                           ng-click="to_detail(client.id, false)"> 编辑
        </ion-option-button>
      </ion-item>

    </ion-list>
  </ion-content>
</ion-view>
